package com.itheima.exception;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class Demo02 {


    public static void main(String[] args)  {
        //method2();
        method1();
    }


    public static void method2() throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("--------");
        //编译期异常 必须要先处理才能运行
        sdf.parse("我也贼帅");
    }

    public static void method1() throws ArithmeticException{

        int i=1/0;
    }
}
